package com.security.view.beans;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.model.SelectItem;

import com.archtecture.control.enums.Arquivo;
import com.archtecture.view.beans.PadraoCrudMB;
import com.archtecture.view.utils.UtilWeb;
import com.security.control.enums.Status;
import com.security.control.models.Usuario;
import com.security.view.utils.UtilSelectItens;

@ManagedBean
@ViewScoped
public class UsuarioMB extends PadraoCrudMB<Usuario> {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 7723824832577731018L;

	public static String getStatusFormatter(Status status) {
		return UtilWeb.obterTextoArquivo(Arquivo.LABELS, status);
	}

	@Override
	public Usuario getInstance() {
		return new Usuario();
	}

	public List<SelectItem> getSelectItemStatus() {
		return UtilSelectItens.getSelectItemStatus();
	}
}
